<?php //Controller strony głównej

include_once "BaseModel.php";
include_once "PostDAO.php";

class DeleteModel extends BaseModel {
	
	public function getData($params) {
		$data = null;
		$data->success = PostDAO::getInstance()->deletePost($params->begin);
		$data->headerEntries[] = '<meta HTTP-EQUIV="REFRESH" content="2; url='.URI::getUrl(null, Session::getLoggedUserName()).'">';
		return $data;
	}
}

?>